package com.sz.rexiang.Fragment;

import org.xutils.x;
import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;

import com.sz.rexiang.R;
import com.sz.rexiang.Utils.ClassUtils;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

@ContentView(R.layout.fg_layout_my)
public class FragmentMy extends BaseFragment {

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onViewCreated(view, savedInstanceState);
	}

	@Event(value = { R.id.fg_my_layout_username, R.id.fg_my_layout_mywallet, R.id.fg_my_layout_backcenter,
			R.id.fg_my_layout_share, R.id.fg_my_layout_checkupdate,
			R.id.fg_my_layout_aboutlx }, type = View.OnClickListener.class)
	private void onClick(View view) {
		// 必须为private
		switch (view.getId()) {
		case R.id.fg_my_layout_username:

			ClassUtils.startActivity(mAc, com.sz.rexiang.Activity.ActivityLogin.class);

			break;

		case R.id.fg_my_layout_mywallet:
			ClassUtils.startActivity(mAc, com.sz.rexiang.Activity.ActivityMyWallet.class);

			// Utils.setToast(mAc,"sssssssssss");
			break;

		case R.id.fg_my_layout_backcenter:
			ClassUtils.startActivity(mAc, com.sz.rexiang.Activity.ActivityLevelCheck.class);

			break;

		case R.id.fg_my_layout_share:
			ClassUtils.startActivity(mAc, com.sz.rexiang.Activity.ActivityShare.class);

			break;

		case R.id.fg_my_layout_checkupdate:

			break;

		case R.id.fg_my_layout_aboutlx:
			ClassUtils.startActivity(mAc, com.sz.rexiang.Activity.ActivityAbout.class);

			break;

		default:
			break;
		}
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);

	}

}
